package com.ailanyin.modules.system.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.ailanyin.common.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 登录日志
 *
 * @author ailanyin
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysLoginLog extends BaseEntity {


    private static final long serialVersionUID = 1L;

    @Excel(name = "序号")
    private Long infoId;

    @Excel(name = "用户账号")
    private String userName;

    @Excel(name = "登录状态" , replace = {"成功_0" , "失败_1"})
    private String status;

    @Excel(name = "登录地址" , width = 25)
    private String ip;

    @Excel(name = "登录地点" , width = 25)
    private String loginLocation;

    @Excel(name = "浏览器" , width = 25)
    private String browser;

    @Excel(name = "操作系统" , width = 25)
    private String os;

    @Excel(name = "提示消息" , width = 25)
    private String msg;

    @Excel(name = "访问时间" , width = 30, format = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

}
